/* 基础页面样式设置 */
body {
  margin: 0; /* 移除默认边距 */
  overflow: hidden; /* 隐藏滚动条 */
  font-family: Arial, sans-serif;
}

/* 通用菜单样式 */
.menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: white;
  min-width: 300px;
  z-index: 1000;
}

/* 游戏标题 */
.game-title {
  font-size: 3rem;
  color: #fcba03;
  text-shadow: 2px 2px rgba(0,0,0,.5);
  margin-bottom: 2rem;
}

/* 按钮样式 */
.menu-button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  background-color: #fcba03;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu-button:hover {
  background-color: #e5a802;
}

/* 图标按钮样式 */
.icon-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  z-index: 100;
}

/* 设置面板样式 */
.setting-item {
  margin: 1rem 0;
  text-align: left;
}

.setting-item label {
  display: block;
  margin-bottom: 0.5rem;
}

.setting-item input[type="range"],
.setting-item select {
  width: 100%;
  padding: 0.5rem;
}

/* 游戏UI样式 */
.score, .lastScore {
  position: fixed;
  color: #fcba03;
  font-size: 1.25rem;
  text-shadow: 2px 2px rgba(0,0,0,.5);
  z-index: 100;
}

.score {
  top: 1rem;
  right: 5rem;
}

.lastScore {
  top: 3rem;
  right: 5rem;
}

/* 操作说明样式 */
.instructions-content {
  text-align: left;
  margin: 1rem 0;
}

.instructions-content p {
  margin: 0.5rem 0;
}

/* 游戏结束界面样式 */
.score-display {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.score-display p {
  margin: 0.5rem 0;
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

/* 游戏失败提示样式 */
.lose {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fcba03;
  font-size: 5rem;
  text-align: center;
  text-shadow: 2px 2px rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 100;
}

.lose.show {
  opacity: 1;
}

/* Three.js 渲染器画布样式 */
canvas {
  display: block;
}